package BDLayer;

import java.util.List;

import modelLayer.Status;

public interface IFDBStatus {
	
	
	//return list of type Status
	public List<Status> getAllStatus(boolean retriveAssociation);
	
	//return an object of type Status by id
	public Status findStatusByID(String statusID, boolean retriveAssociation);
	
	//return an list of type Status by initial
	public List<Status> findStatusByInitial(String initial, boolean retriveAssociation);
	
	//return 1 if insert is ok, -1 if not
	//and throws a Exception
	public int insertSatus(Status status, boolean retriveAssociation) throws Exception;
	
	//return 1 if update is ok, -1 if not
	//and throws a Exception
	public int updateStatus(Status status) throws Exception;
	
	//return 1 if delete is ok, - -1 if not
	//and throws a Exception
	public int deleteStatus(Status status) throws Exception;

}
